.detail {
  position: relative;
  overflow: hidden;

  &::after {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background-color: rgba($color: #000, $alpha: 0.3);
    z-index: 2;
    content: '';
  }
}

.detail-blur {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  filter: blur(40px);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 1;
}

.detail-pic {
  margin-right: 20px;
  width: 220px;
  border: 3px solid #fff;
  border-radius: 10px;
  overflow: hidden;

  img {
    width: 100%;
    display: block;
  }
}

.detail-con {
  position: relative;
  z-index: 10;
  padding: 30px 0;
  color: #fff;
  display: flex;

  a {
    color: #fff;
  }
}

.detial-title {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  flex-flow: wrap;

  h1 {
    font-size: 24px;
    display: inline-block;
  }

  span {
    margin-left: 20px;
    display: block;

    a {
      font-size: 12px;
      display: inline-block;
      vertical-align: middle;
      margin-right: 10px;
      height: 20px;
      padding: 0 4px;
      line-height: 20px;
      color: #fff;
      border: 1px solid #fff;
      border-radius: 3px;

      &:last-child {
        margin-right: 0;
      }
    }
  }
}

.detail-info {
  width: 960px;

  p {
    margin-bottom: 10px;
    max-width: 760px;
    @include clamp(1);
  }
}

.detail-info__count {
  display: flex;
  margin-top: 20px;
  margin-bottom: 20px;

  li {
    border-right: 1px solid rgba($color: #fff, $alpha: 0.7);
    padding-right: 20px;

    &:last-child {
      border-right: none;
    }

    span {
      display: block;
    }
  }
}

.detail-tool {
  position: absolute;
  left: 240px;
  bottom: 30px;
  display: flex;
}

.detail-tool__share {
  background-color: #fff;
  padding: 5px 3px;
  height: 40px;
  border-radius: 20px;
  margin-left: 15px;
}

.detail-tool__on {
  display: flex;
  width: 90px;
  height: 40px;
  border-radius: 5px;
  color: #e8f1ff;
  font-size: 16px;
  background-color: $d-color-primary;
  margin-right: 15px;
  justify-content: center;
  align-items: center;
  cursor: pointer;

  &:last-child {
    margin-right: 0;
  }

  &.share {
    display: none;
  }

  &:hover {
    background-color: rgba($color: $d-color-primary, $alpha: 0.45);
  }

  i {
    font-size: 18px;
    margin-right: 7px;
  }

  &.active {
    width: 100px;
    background-color: rgba($color: #fff, $alpha: 0.1);
    border: 3px solid rgba($color: #fff, $alpha: 0.5);
    color: #fff;
  }
}

.detail-score {
  position: absolute;
  right: 0;
  top: 50%;
  width: 200px;
  padding: 20px 10px;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  border-radius: 10px;
}

.detail-nav {
  border-bottom: 1px solid #ebebeb;
  background-color: #fff;

  li {
    padding-right: 30px;
    font-size: 16px;
    display: inline-block;
    border-bottom: 2px solid transparent;
    position: relative;

    a {
      padding: 14px 0;
      display: inline-block;
      position: relative;
      width: 100%;
      bottom: -1px;
      color: #233;
    }

    &.active,
    &:hover {
      margin-bottom: -1px;
      font-weight: bold;

      a {
        border-bottom: 2px solid $d-text-color-hover;
      }
    }
  }
}

.title {
  h2 {
    font-size: 16px;
  }
}

.ep {
  margin-top: 10px;
}

.detail-content {
  line-height: 2;
  color: #666;

  p {
    margin-top: 0;
  }
}

.right-actor {
  padding-top: 6px;
  p {
    margin-top: 10px;
    white-space: nowrap;
    @include clamp(1);
  }

  &.auto {
    max-height: inherit;
  }
}

.player {
  margin-top: 16px;
  .title {
    display: flex;
    cursor: pointer;
    h4 {
      flex-grow: 1;
      height: 28px;
      line-height: 28px;
    }
    span {
      color: #999;
    }
  }
  .player-list {
    display: none;
    position: absolute;
    border-radius: $d-border-radius-sm;
    background-color: #fff;
    padding: 0 10px 10px 0;
    width: 595px;
    transform: translateX(-75%);
    box-shadow: 0 0 0 4px rgba(114, 144, 179, 0.3);
    z-index: 10;
    span {
      position: absolute;
      right: -25px;
      top: -25px;
      font-size: 18px;
      cursor: pointer;
    }
    a {
      width: 130px;
      margin-left: 15px;
      margin-top: 15px;
      padding: 10px;
      display: inline-block;
      border-radius: $d-border-radius-sm;
      border: 1px solid #ebebeb;
      p {
        margin-top: 0;
        @include clamp(1);
      }
      &:hover {
        color: $d-text-color-hover;
        border-color: $d-text-color-hover;
        p {
          color: $d-text-color-hover;
        }
      }
    }
    &.show {
      display: block;
    }
  }

  .player-box {
    margin-right: -10px;
    margin-bottom: -10px;
    overflow-x: hidden;
    overflow-y: auto;
    max-height: 320px;
    border-radius: 4px;
    padding-bottom: 12px;
    &::-webkit-scrollbar {
      width: 7px;
      height: 7px;
      border-radius: 3.5px;
    }

    &::-webkit-scrollbar-thumb {
      border-radius: 1em;
      background-color: rgba(50, 50, 50, 0.3);
    }

    &::-webkit-scrollbar-track {
      box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    }

    &::-webkit-scrollbar-thumb {
      background: rgba(100, 100, 100, 0.8);
    }

    &::-webkit-scrollbar-corner,
    &::-webkit-scrollbar-thumb:window-inactive {
      background: rgba(100, 100, 100, 0.4);
    }
  }
}

.digg {
  color: #ccc;
  margin-right: 10px;
  cursor: pointer;

  i {
    margin-right: 5px;
  }
}

.play-next {
  a {
    color: #ccc;
    margin-left: 10px;
  }
}

.detail-bottom {
  display: flex;
  margin-bottom: -10px;
  :global {
    .left {
      margin-right: 20px;
      background-color: transparent;
    }
  }
}

.reference {
  li {
    padding-bottom: 10px;
    margin-top: 10px;
    border-bottom: 1px solid #ebebeb;
    white-space: nowrap;
    @include clamp(1);
    &:last-child {
      border-bottom: none;
    }
    span {
      color: #333;
      margin-right: 10px;
    }
  }
}

@media (min-width: 0) and (max-width: 1200px) {
  .detail-pic {
    width: 30%;
    margin-right: 10px;
    border: none;
  }

  .detail-info {
    width: 65%;
  }

  .detail-con {
    padding: 15px 10px;

    p {
      &:nth-child(4) {
        span {
          &:nth-child(1) {
            display: none;
          }
        }
      }

      &:nth-child(2),
      &:nth-child(6),
      &.detail-update {
        display: none;
      }
    }
  }

  .detial-title {
    margin-bottom: 10px;

    h1 {
      @include clamp(1);
      font-size: 18px;
      width: 100%;
    }

    span {
      margin-left: 0;
      margin-top: 5px;
      @include clamp(1);
    }
  }

  .detail-info__count,
  .detail-score,
  .detail-tool__share {
    display: none;
  }

  .detail-tool {
    left: calc(30% + 14px);
    bottom: 15px;
  }

  .detail-tool__on {
    width: 70px;
    height: 30px;
    line-height: 28px;
    font-size: 14px;
    margin-right: 10px;

    &.share {
      display: inline-block;
    }
  }

  .detail-nav {
    padding: 0 10px;

    li {
      padding-right: 20px;
      font-size: 14px;

      a {
        padding: 10px 0;
      }

      &.active {
        a {
          border-bottom-width: 1px;
        }
      }
    }
  }
  .detail-bottom {
    :global {
      .left {
        margin-right: 0;
      }
    }
  }

  .player {
    margin-top: 16px;
    .title {
      display: flex;
      cursor: pointer;
      h4 {
        flex-grow: 1;
        height: 28px;
        line-height: 28px;
      }
      span {
        color: #999;
      }
    }
    .player-list {
      position: fixed;
      width: 95%;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      span {
        position: absolute;
        right: 0;
        top: -30px;
      }
      a {
        width: 115px;
        margin-left: 10px;
        margin-top: 10px;
      }
    }
  }
}

@media (min-width: 0) and (max-width: 413px) {
  .detial-title {
    margin-bottom: 5px;
  }

  .detail-info {
    p {
      margin-bottom: 5px;
    }
  }
}
